<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>平台全球销售额</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>

</head>
<body>
    {% include "base.html" %}
    <div id="af641260bc4f4514ae477b7c608088ad" class="chart-container" style="width:1000px; height:700px;"></div>
    <script>
        var chart_af641260bc4f4514ae477b7c608088ad = echarts.init(
            document.getElementById('af641260bc4f4514ae477b7c608088ad'), 'white', {renderer: 'canvas'});
        var option_af641260bc4f4514ae477b7c608088ad = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "funnel",
            "data": [
                {
                    "name": "Wii",
                    "value": 330.92
                },
                {
                    "name": "DS",
                    "value": 207.17000000000004
                },
                {
                    "name": "X360",
                    "value": 189.92
                },
                {
                    "name": "GB",
                    "value": 128.69
                },
                {
                    "name": "PS3",
                    "value": 111.48
                },
                {
                    "name": "NES",
                    "value": 93.28999999999999
                },
                {
                    "name": "PS2",
                    "value": 84.74999999999999
                },
                {
                    "name": "3DS",
                    "value": 75.04
                },
                {
                    "name": "PS4",
                    "value": 49.980000000000004
                },
                {
                    "name": "SNES",
                    "value": 49.22
                },
                {
                    "name": "PS",
                    "value": 45.6
                },
                {
                    "name": "N64",
                    "value": 37.449999999999996
                },
                {
                    "name": "GBA",
                    "value": 26.34
                },
                {
                    "name": "XB",
                    "value": 8.49
                },
                {
                    "name": "PC",
                    "value": 8.11
                },
                {
                    "name": "2600",
                    "value": 7.81
                },
                {
                    "name": "PSP",
                    "value": 7.72
                }
            ],
            "sort": "descending",
            "gap": 2,
            "label": {
                "show": true,
                "position": "inside",
                "margin": 8
            },
            "tooltip": {
                "show": true,
                "trigger": "item",
                "triggerOn": "mousemove|click",
                "axisPointer": {
                    "type": "line"
                },
                "showContent": true,
                "alwaysShowContent": false,
                "showDelay": 0,
                "hideDelay": 100,
                "formatter": "{a} <br/>{b} : {c}%",
                "textStyle": {
                    "fontSize": 14
                },
                "borderWidth": 0,
                "padding": 5
            },
            "itemStyle": {
                "borderColor": "#fff",
                "borderWidth": 6
            }
        }
    ],
    "legend": [
        {
            "data": [
                "N64",
                "SNES",
                "PS3",
                "X360",
                "GB",
                "GBA",
                "PS4",
                "NES",
                "PS2",
                "PC",
                "PSP",
                "2600",
                "PS",
                "DS",
                "XB",
                "3DS",
                "Wii"
            ],
            "selected": {
                "Wii": true,
                "DS": true,
                "X360": true,
                "GB": true,
                "PS3": true,
                "NES": true,
                "PS2": true,
                "3DS": true,
                "PS4": true,
                "SNES": true,
                "PS": true,
                "N64": true,
                "GBA": true,
                "XB": true,
                "PC": true,
                "2600": true,
                "PSP": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "title": [
        {
            "subtext": "\u5e73\u53f0\u5168\u7403\u9500\u552e\u989d",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_af641260bc4f4514ae477b7c608088ad.setOption(option_af641260bc4f4514ae477b7c608088ad);
    </script>
</body>
</html>
